/*
 * @Descripttion: 啦啦啦哈哈哈
 * @version: 
 * @Author: lsy
 * @Date: 2021-10-09 10:04:09
 * @LastEditors: liushengyan
 * @LastEditTime: 2022-09-21 19:58:21
 */
// 配置代理
// 1. 引入http-proxy-middleware模块
// var { createProxyMiddleware } = require('http-proxy-middleware');
// 2. 代理中间件配置项
// var options = {
//     target: 'http://192.168.1.223/prod-api', // target host
//     changeOrigin: true, // needed for virtual hosted sites
//     pathRewrite: {
//         "^/api": ""
//     }
// };
// 3. 将请求路径按“代理中间件配置项”进行请求
// global.app.use('/api', createProxyMiddleware(options));